package org.xp.judgeplatform.pojo.dto.JudgeDTO;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
public class JudgeRequestDTO {
    @NotNull(message = "题目ID不能为空")
    @JsonProperty("problem_id")
    private Long problemId;

    @NotNull(message = "用户ID不能为空")
    @JsonProperty("user_id")
    private Integer userId;

    @NotBlank(message = "代码不能为空")
    private String code;
    
    @NotBlank(message = "编程语言不能为空")
    private String language;

    @JsonProperty("is_submission")
    private Boolean isSubmission = false;

    @JsonProperty("function_name")
    private String functionName;
}
